#define _CRT_SECURE_NO_WARNINGS

#include <iostream>
#include <string>
#include <vector>
using namespace std;

int main()
{
	//vector<int> v1(10,1);
	//v1.push_back(10);

	///*cout << v1.capacity() << endl;
	//cout << sizeof(v1) << endl;*/

	//vector<int> v2(v1);
	//vector<int> v3(v2.begin(), v2.end());

	//v1.assign(4, 1);
	//v2.assign(v1.begin(),v1.end());
	//v3.assign(0,0);
	//for (int i = 0; i < v1.size(); i++)
	//{
	//	cout << v1[i] << " ";
	//}
	//cout << endl;

	//for (int i = 0; i < v2.size(); i++)
	//{
	//	cout << v2[i] << " ";
	//}
	//cout << endl;
	//for (int i = 0; i < v3.size(); i++)
	//{
	//	cout << v3[i] << " ";
	//}
	//cout << endl;

	
	//for (int i = 0; i < s1.size(); i++)
	//{
	//	cout << s1[i] << " ";
	//}
	//cout << endl;
	//cout << s1.size() << endl;
	//cout << sizeof(s1) << endl;
	//cout << s1.capacity() << endl;

	//string s1("sdfadf");
	//string s2(s1.begin(), s1.end());
	//cout << s2 << endl;




	vector<int> v1;
	v1.push_back(1);
	v1.push_back(2);
	v1.push_back(3);
	v1.push_back(4);
	v1.push_back(5);
	v1.push_back(6);
	v1.push_back(7);
	for (int i = 0; i < v1.size(); i++)
	{
		cout << v1[i] << " ";
	}
	cout << endl;
	auto it = find(v1.begin(), v1.end(), 4);
	it = v1.erase(it);
	cout << *it << endl;
	for (int i = 0; i < v1.size(); i++)
	{
		cout << v1[i] << " ";
	}
	cout << endl;

	//string v1("adfas");
	//for (int i = 0; i < v1.size(); i++)
	//{
	//	cout << v1[i] << " ";
	//}
	//cout << endl;
	//auto it = find(v1.begin(), v1.end(), 's');
	////it = v1.erase(it);
	//v1.erase(it);

	////cout << *it << endl;
	//for (int i = 0; i < v1.size(); i++)
	//{
	//	cout << v1[i] << " ";
	//}
	//cout << endl;
	return 0;
}